/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_List_Map_string_object_ } from '../models/BaseResponse_List_Map_string_object_';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class CommonControllerService {
    /**
     * getEnumsList
     * @param type type
     * @returns BaseResponse_List_Map_string_object_ OK
     * @throws ApiError
     */
    public static getEnumsListUsingGet(
        type?: string,
    ): CancelablePromise<BaseResponse_List_Map_string_object_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/api/common/getEnum',
            query: {
                'type': type,
            },
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
    /**
     * getOptionsList
     * @param type type
     * @returns BaseResponse_List_Map_string_object_ OK
     * @throws ApiError
     */
    public static getOptionsListUsingGet(
        type?: string,
    ): CancelablePromise<BaseResponse_List_Map_string_object_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/api/common/getOption',
            query: {
                'type': type,
            },
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
}
